﻿using UnityEngine;
using System.Collections;

public class KolaMove : MonoBehaviour {

	void Awake ()
	{
	    DontDestroyOnLoad(this);
	}
	
    float speed = 1.0f;
	// Use this for initialization
    void Start()
    {
        if (!networkView.isMine)
        {
            enabled = false;
            Debug.Log("Network is not mine");
        }
	}
	
	// Update is called once per frame
	void Update () {
        var move = new Vector3(Input.GetAxis("Horizontal"), Input.GetAxis("Vertical"), 0);
        transform.position += move * speed * Time.deltaTime;
	}
}
